<template>
  <slot v-if="showSlot" :userRight="props.userRight"></slot>
</template>

<script lang="ts" setup>
import { computed } from 'vue'

const props = defineProps({
  userRight: { type: [String, Array], default: () => [] },
})

const showSlot = computed(() => {
  if (props.userRight.length === 0) return false

  return true
})
</script>

<style lang="less" scoped></style>
